﻿using System.Collections.Generic;
using Tauren.Form.Entity.Global;
using Tauren.Form.Entity.Model;

namespace Tauren.Form.Entity.Output
{
    public class Form_TableInfo_OutPut : Form_TableInfo
    {      /// <summary>
           /// 创建人显示名
           /// </summary>
        public virtual string Dic_Creator { get; set; }

        /// <summary>
        /// 修改人显示名
        /// </summary>
        public virtual string Dic_Modifier { get; set; }
        /// <summary>
        /// 创建日期-显示
        /// </summary>
        public virtual string Dic_Creatdate { get; set; }
        /// <summary>
        /// 修改日期-显示
        /// </summary>
        public virtual string Dic_Modifdate { get; set; }
        /// <summary>
        /// 表
        /// </summary>
        public virtual List<Form_SametableInfo_OutPut> Tables { get; set; } = new List<Form_SametableInfo_OutPut>();
        /// <summary>
        /// 互斥表
        /// </summary>
        public virtual List<Form_SametableInfo_OutPut> Sametables { get; set; } = new List<Form_SametableInfo_OutPut>();
        /// <summary>
        /// 子表
        /// </summary>
        public virtual List<Form_Child_TableInfo_OutPut> ChildTables { get; set; } = new List<Form_Child_TableInfo_OutPut>();

        public virtual string PkTable { get; set; } = "";
        public virtual int IsPrimary { get; set; } = 1;

        public virtual string Special { get; set; } = "special";
    }
    public class PageForm_TableInfoTable : GlobalOutPut
    {
        public virtual long RowNo { get; set; }
        public virtual long AutoId { get; set; }
        public virtual string TableCode { get; set; }
        public virtual string CNName { get; set; }
        public virtual string ENName { get; set; }
        public virtual string ForeignKey { get; set; }
        public virtual string FieldName { get; set; }
        public virtual string FieldENName { get; set; }
        public virtual int? GroupType { get; set; }
        public virtual string Dic_GroupType { get; set; }
        public virtual bool? Records { get; set; }
        public virtual string Dic_Records { get; set; }
        public virtual string Dic_Creator { get; set; }
        public virtual string Dic_Creatdate { get; set; }
        public virtual bool Enable { get; set; }
        public virtual string Dic_Enable { get; set; }
        public virtual string FlowTableCode { get; set; }
    }
}
